package com.yfp.client.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yfp.client.domain.StoredValueActivityDetail;
import com.yfp.client.mapper.StoredValueActivityDetailMapper;
import com.yfp.client.service.StoredValueActivityDetailService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 * @description 针对表【stored_value_activity_detail(储值活动详情)】的数据库操作Service实现
 * @createDate 2024-11-22 10:15:05
 */
@Service
public class StoredValueActivityDetailServiceImpl extends ServiceImpl<StoredValueActivityDetailMapper, StoredValueActivityDetail> implements StoredValueActivityDetailService {

    @Resource
    private StoredValueActivityDetailMapper storedValueActivityDetailMapper;

    @Override
    public List<StoredValueActivityDetail> listByActivityId(Long id) {
        List<StoredValueActivityDetail> storedValueActivityDetails = storedValueActivityDetailMapper.listByActivityId(id);
        return storedValueActivityDetails;
    }

    @Override
    public StoredValueActivityDetail listFirstStoredByActivityId(Long activityId) {
        return storedValueActivityDetailMapper.listFirstStoredByActivityId(activityId);
    }
}




